##!/usr/bin/python2
## -*- coding: utf-8 -*-
<%page args="shot, page" />
<%
from pygolem_lite.web import make_config, get_page_paths, make_image, cat
from pygolem_lite import Shot
import re
page_path, base_path, page = get_page_paths(shot, page)
%>
<h3> <a href="main.py">[Source - main.py]</a><br/> </h3>
% if Shot(shot)['plasma']:
${make_image( "graphs/electron_density" , "Average electron density")}
This is directly measured <b>line-average density</b> (not line integrated). The density corrected on plasma position is in the <a href="/shots/${shot}/analysis/Basics/0612AdvancedAnalysis.ON/#density">Advanced Analysis</a>.
## 'phase_substracted'
%else:
<h2>No plasma</h2>
%endif
<h3>Signal quality</h3>
%try:
Carrier frequency of the saw tooth signal: ${cat(page_path+"/results/carrier_freq")} Hz <br/>
Harmonics distortion: ${cat(page_path+"/results/harmonics_distortion")}<br/>
Signal amplitude: ${cat(page_path+"/results/norm_ampl")} V
%except:
%endtry
${Shot(shot).get_pygolem_list([ 'electron_density', 'electron_density_line', 'electron_density_mean', 'electron_density_equilibrium'])}